Set Up the Main Subroutine

When Visual Basic 4.0 first opens, it creates a default project and form for you. The entry point to your Automation Server DLL must be the Main subroutine. This subroutine needs to be defined in a Visual Basic Module, but cannot be defined in a Class Module.

  1. Remove the default form from your project by highlighting the form in the Project window and choosing Remove File from the File menu.
  2. To add a new Module to the project, choose Module from the Insert menu.
  3. In the Module window, add the following:
Sub Main()
End Sub

You do not need to add any code to the Main subroutine, as long as it exists in your project.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com